//
//  CertificationViewController.m
//  Manage
//
//  Created by 杨康 on 2018/1/12.
//  Copyright © 2018年 杨康. All rights reserved.
//

#import "CertificationViewController.h"

@interface CertificationViewController ()

@end

@implementation CertificationViewController
-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.view.backgroundColor=[UIColor colorF];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title=@"实名认证";
    
    YKTextField *nameTF=[SingLeton myTextFieldsecure:NO andkeyboardType:UIKeyboardTypeDefault andplaceholder:@"真实姓名" andLeftImage:@"绿点" RequestSuccess:^(YKTextField *textField, NSRange range, NSString *string) {
        
    }];
    [self.view addSubview:nameTF];
    [nameTF mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(0);
        make.top.mas_equalTo(TOP_HEIGHT);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, 44));
    }];
    
    
    YKTextField *idCardTF=[SingLeton myTextFieldsecure:NO andkeyboardType:UIKeyboardTypeDefault andplaceholder:@"身份证号" andLeftImage:@"绿点" RequestSuccess:^(YKTextField *textField, NSRange range, NSString *string) {
        
    }];
    [self.view addSubview:idCardTF];
    [idCardTF mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(0);
        make.top.mas_equalTo(nameTF.mas_bottom).mas_offset(1);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, 44));
    }];
    
    
    YKTextField *phoneTF=[SingLeton myTextFieldsecure:NO andkeyboardType:UIKeyboardTypeDefault andplaceholder:@"手机号" andLeftImage:@"绿点" RequestSuccess:^(YKTextField *textField, NSRange range, NSString *string) {
        
    }];
    [self.view addSubview:phoneTF];
    [phoneTF mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(0);
        make.top.mas_equalTo(idCardTF.mas_bottom).mas_offset(1);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, 44));
    }];
    
    
    YKTextField *workTF=[SingLeton myTextFieldsecure:NO andkeyboardType:UIKeyboardTypeDefault andplaceholder:@"工作单位" andLeftImage:@"绿点" RequestSuccess:^(YKTextField *textField, NSRange range, NSString *string) {
        
    }];
    [self.view addSubview:workTF];
    [workTF mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(0);
        make.top.mas_equalTo(phoneTF.mas_bottom).mas_offset(1);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, 44));
    }];
    
    
    YKTextField *addressTF=[SingLeton myTextFieldsecure:NO andkeyboardType:UIKeyboardTypeDefault andplaceholder:@"现住地址" andLeftImage:@"绿点" RequestSuccess:^(YKTextField *textField, NSRange range, NSString *string) {
        
    }];
    [self.view addSubview:addressTF];
    [addressTF mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(0);
        make.top.mas_equalTo(workTF.mas_bottom).mas_offset(1);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, 44));
    }];
    
    YKTextField *detailTF=[SingLeton myTextFieldsecure:NO andkeyboardType:UIKeyboardTypeDefault andplaceholder:@"详细地址" andLeftImage:@"绿点" RequestSuccess:^(YKTextField *textField, NSRange range, NSString *string) {
        
    }];
    [self.view addSubview:detailTF];
    [detailTF mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(0);
        make.top.mas_equalTo(addressTF.mas_bottom).mas_offset(1);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, 44));
    }];
    
    
    
    
    YKButton *saveButton=[SingLeton endButton:[UIColor colorWithHexString:@"09be00"] andTitle:@"提交审核" RequestSuccess:^(UIButton *btn) {
        
    }];
    [self.view addSubview:saveButton];
    [saveButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.view);
        make.bottom.mas_equalTo(-20);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH-40, 44));
    }];
    
    
    
    
}



@end
